package com.example.demo.web.rest.controller;

import com.ffcs.oss.param.out.ServiceResp;
import com.example.demo.service.ImportLogService;
import com.example.demo.web.rest.evt.CsSmImportLogDEvt;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("导入日志")
@RestController
@RequestMapping("/api/importLog")
public class ImportLogController {

    @Autowired
    ImportLogService importLogService;

    @PostMapping("/list")
    @ApiOperation("获取日志列表")
    public ServiceResp getList(@RequestBody CsSmImportLogDEvt evt) {
        return importLogService.getList(evt);
    }

}
